<?php

/**
 * This template is called from \StudyBuddy\Relatedtags class
 * when new tags are added and we need to
 * generate html of related tags.
 *
 * It is usually not called during rendering of page
 *
 */
class tplRelatedlink extends StudyBuddy\Template\Template
{
	/**
	 * 'tag' and 'link' are not always the same
	 * in 'Related tags' block the link would be like this:
	 * php+mysql while the 'tag' is just 'mysql'
	 *
	 * @var array
	 */
	protected static $vars = array(
	'tag' => '', 
	'title' => '',
	'link' => '',
	'i_count' => '');

	protected static $tpl = '<li>
								<a href="/tagged/%3$s/" title="Questions tagged \'%1$s\'">
									<span class="tag-left"></span>
									<span class="tag-mid">%1$s</span>
									<span class="tag-right"></span>
								</a>
							</li>';
}